﻿using System.Data;
using DAL;

namespace BLL
{
    public class BllEmployee
    {
        #region[Get-Data]
        public DataTable GetEmployee(string keywords)
        {
            return DalEmployee.GetEmployee(keywords);
        }
        public DataTable GetEmployeeEdit(int id)
        {
            return DalEmployee.GetEmployeeEdit(id);
        }
        public DataTable GetAutoID(string ColunmName, string TableName)
        {
            return DalEmployee.GetAutoID(ColunmName, TableName);
        }
        public DataTable GetAuto_ID(string ColunmName, string TableName, string Num)
        {
            return DalEmployee.GetAuto_ID(ColunmName, TableName,Num);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool Insert(EtEmployee obj)
        {
            return DalEmployee.Insert(obj);
        }
        public static bool Update(EtEmployee obj)
        {
            return DalEmployee.Update(obj);
        }
        public static bool Delete(EtEmployee obj)
        {
            return DalEmployee.Delete(obj);
        }
        #endregion
    }
}